
import axios from "axios";

var server = axios.create({
  baseURL: 'http://127.0.1.1:3000/'
})

server.interceptors.request.use(config => {

  return config
}, err => {
  return Promise.reject(err)
})
server.interceptors.response.use(res => {
  return res.data
}, err => {
  return Promise.reject(err)
})

export default server